package com.game.modular.game.battle.panel.skill.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SkillPanelInfo implements Serializable {
    private Integer isATalent;// 是否为天赋技能
    private Integer number;// 释放次数
    private Integer killCount;// 击杀数
    private Integer recoverCount;// 恢复数

    public static SkillPanelInfo init() {
        return SkillPanelInfo.builder()
                .number(0)
                .killCount(0)
                .recoverCount(0)
                .build();
    }

    public void addNumber(Integer number) {
        this.number += number;
    }

    public void addKillCount(Integer killCount) {
        this.killCount += killCount;
    }

    public void addRecoverCount(Integer recoverCount) {
        this.recoverCount += recoverCount;
    }
}
